package vip.indo.task.common;

import lombok.extern.slf4j.Slf4j;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

import java.text.SimpleDateFormat;
import java.util.Date;

/**
 * @author 田连印
 * @Date 2025/1/14 10:19
 * @Descripition
 */
@Component
@Slf4j
public class TestSchedule {
//    @Scheduled(cron = "0/10 * * * * ?")
    void work() {
        System.out.println("启动就执行的定时任务！--------每十秒执行一次" + new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(new Date()));
    }
}
